#ifndef __MAIN_H
#define __MAIN_H
#include "gd32f10x.h"
#include "gd32f10x_it.h"
#include "systick.h"
#include "uart.h"
#include "gpio.h" 
#include "can.h" 
#include "dma.h" 
#include "adc.h" 
#include "timer.h" 
#include "nvic.h" 
#include "pid.h" 
#include "pwm.h"

extern can_parameter_struct can_init_parameter;
extern can_filter_parameter_struct can_filter_parameter;
extern can_trasnmit_message_struct transmit_message;
extern can_receive_message_struct receive_message;

extern uint8_t Ms1Count;
extern uint8_t Ms10Count;
extern uint8_t Ms100Count;
extern uint8_t can_period;
extern uint16_t led_period;
extern uint8_t checksumerr_flag_count;

#endif
